#ifndef MAINFRAME_H
#define MAINFRAME_H

#include <MWidget>
#include <MFile>
#include <MTimer>

//class Widget : public MWidget
//{
//	public:
//		Widget(MWidget *parent = nullptr) :
//			MWidget(parent) {}
//		~Widget() {}
//};

class MainWindow : public MWidget
{
	public:
		MainWindow(MWidget *parent = nullptr);
		~MainWindow() override;

	private:
		void paintEvent(MPaintEvent *event) override;

	private:
		MTimer timer[2];
		MFile *led[2];
		MFile *serialPort;
//		Widget *widget;

	private slots:
		void timeout1();
		void timeout2();

	private slots:
		void readyRead();
};

#endif //MAINFRAME_H
